﻿namespace WeWork.Model
{
    /// <summary>
    /// 日程消息
    /// </summary>
    public class ChatCalendar : MsgChatRoomBase
    {
        /*
        {
            "msgid":"2345881211604379705_1603877680",
            "action":"send",
            "from":"ken",
            "tolist":["icef","test"],
            "roomid":"wr2LO0CAAAFrTZCGWWAxBA",
            "msgtime":1603877680795,"msgtype":"calendar",
            "calendar":{
                "title":"xxx业绩复盘会",
                "creatorname":"test",
                "attendeename":["aaa","bbb"],
                "starttime":1603882800,
                "endtime":1603886400,
                "place":"",
                "remarks":""
            }
        }
        */
        /// <summary>
        /// 消息内容
        /// </summary>
        public CalendarInfo calendar { set; get; }
    }

    public class CalendarInfo
    {
        /// <summary>
        /// 日程主题。String类型
        /// </summary>
        public string title { set; get; }
        /// <summary>
        /// 日程组织者。String类型
        /// </summary>
        public string creatorname { set; get; }
        /// <summary>
        /// 日程参与人。数组，内容为String类型
        /// </summary>
        public string[] attendeename { set; get; }
        /// <summary>
        /// 日程开始时间。Utc时间，单位秒
        /// </summary>
        public long starttime { set; get; }
        /// <summary>
        /// 日程结束时间。Utc时间，单位秒
        /// </summary>
        public long endtime { set; get; }
        /// <summary>
        /// 日程地点。String类型
        /// </summary>
        public string place { set; get; }
        /// <summary>
        /// 日程备注。String类型
        /// </summary>
        public string remarks { set; get; }
    }
}
